<template>
    <div class="home_container">
        <!-- 轮播图区域 -->
        <mt-swipe :auto="4000">
            <mt-swipe-item v-for="item in lunbotulist" :key="item.id">
                <img :src="item.img_url" alt="">
            </mt-swipe-item>
        </mt-swipe>
        <!-- 中间导航栏部分 -->
        <div class="mui-content">
		        <ul class="mui-table-view mui-grid-view mui-grid-9">
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		                    <div class="tupian t1"></div>
		                    <div class="mui-media-body" >新闻资讯</div></a></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                            <div class="tupian t2"></div>
		                    <div class="mui-media-body">图片分享</div></a></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		                    <div class="tupian t3"></div>
		                    <div class="mui-media-body">商品购买</div></a></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		                    <div class="tupian t4"></div>
		                    <div class="mui-media-body">留言反馈</div></a></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		                    <div class="tupian t5"></div>
		                    <div class="mui-media-body">视频专区</div></a></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		                    <div class="tupian t6"></div>
		                    <div class="mui-media-body">联系我们</div></a></li>
		        </ul> 
		</div>
    </div>
</template>
<script>
import { Toast } from 'mint-ui'
export default {
    data() {
        return{
            lunbotulist:[],
        }
    },
    created() {
        this.getLunBo();
    },
    methods:{
        getLunBo() {
            this.$http.get("http://www.liulongbin.top:3005/api/getnewslist").then(result => {
                console.log(result.body)
                if(result.body.status == 0){
                    this.lunbotulist = result.body.message
                    Toast("数据加载成功...")
                }else{
                    Toast("数据加载失败....")
                }
            })
        }
    }
}
</script>
<style lang="scss" scoped>
.home_container{
    
    .mint-swipe{
        height: 200px; 
         .mint-swipe-item{
            img{
                width: 100%;
                height: 100%;
            }

        }
    }
    .mui-grid-view.mui-grid-9{
        background-color: white;
    }
    .mui-content>.mui-table-view:first-child{
        margin-top: 0;
    }
    .mui-grid-view.mui-grid-9 .mui-table-view-cell{
        border-right: 0;
        border-bottom: 0;
        .tupian {
            width: 60px;
            height: 60px;
            background-size: 100%;
            margin-left: 12px;
            
        }
        .t1{
            background-image: url('../images/menu1.png');
        }
        .t2{
            background-image: url('../images/menu2.png');
        }
        .t3{
            background-image: url('../images/menu3.png');
        }
        .t4{
            background-image: url('../images/menu4.png');
        }
        .t5{
            background-image: url('../images/menu5.png');
        }
        .t6{
            background-image: url('../images/menu6.png');
        }

    }
   
}
</style>
